﻿using com.guojin.core.io;
using com.guojin.core.io.message;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

namespace com.guojin.mj.net.message.login
{

    public class GetwayClub : Message
    {
        public static int TYPE = 7;
        public static int ID = 93;

        private int userid;
        private int clubid;
        public static GetwayClub Create(int id,int cid) {
            GetwayClub gc = new GetwayClub();
            gc.userid = id;
            gc.clubid = cid;
            return gc;
        }
        public int Userid
        {
            get
            {
                return userid;
            }

            set
            {
                userid = value;
            }
        }

        public int Clubid
        {
            get
            {
                return clubid;
            }

            set
            {
                clubid = value;
            }
        }

        public void decode(core.io.Input _in)
        {
            
        }

        public void encode(Output _out)
        {
            _out.writeInt(userid);
            _out.writeInt(clubid);
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public int getMessageId()
        {
            return ID;
        }

        public string toString()
        {
            return "userid" + userid + "clubid" + clubid;
        }
    }
}
